<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <style>
        .flex{display: -webkit-box; display: -webkit-flex; display: flex;}
        html,body{
            background-color: white;
        }
        .logo {
            width: 0.84rem;
            height: 0.84rem;
            background-size: 0.84rem 0.84rem;
            background-image: url("../../image/my/arrow02.png");
            border-radius: 0.42rem;
        }
    </style>
</head>
<body>
    <div style="width: 100%; height: 0.41rem"></div>
    <div class="flex" style="width: 100%; height: 0.84rem; justify-content: center;">
        <div class="logo"></div>
    </div>
    <p id="versions" style="font-size: 0.12rem; color: #A6A8B6; margin-top: 0.10rem; width: 100%; text-align: center;"></p>
    <div style="width: 100%; margin-top: 0.30rem;">
        <p id="content" style="font-size: 0.14rem; line-height: 0.23rem; color: #83889A; margin-left: 0.16rem; margin-right: 0.16rem;"></p>
    </div>
</body>
</html>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common/common.js"></script>
<script type="text/javascript">
    var versionsEl, contentEl;
    apiready = function () {
        versionsEl = $api.byId('versions');
        contentEl = $api.byId('content');

        getInfo();
    }

    function getInfo() {
        api.ajax({
            url: apiUrl + '/me/about-us',
            tag: '/me/about-us',
            method: 'get',
            data: {
                values: {
                    token: $api.getStorage("token"),
                }
            }
        }, function(ret, err) {
            if (ret) {
                if (ret.code == 0) {
                    var info = ret.data;

                    $api.text(versionsEl, "版本：V" + api.appVersion);
                    $api.text(contentEl, info['content']);

                } else {
                    api.toast({
                        msg: ret.err_msg,
                        duration: 2000,
                        location: 'middle'
                    });
                }
            } else {
                // api.alert({ msg: JSON.stringify(err) });
            }
        });
    }
</script>